package com.aptech.model;

import java.sql.Timestamp;

/**
 * Rest entity. @author MyEclipse Persistence Tools
 */

public class Rest implements java.io.Serializable {

	// Fields

	private Long id;
	private Userprofile userprofile;
	private Timestamp begintime;
	private Timestamp overtime;
	private String reason;
	private String state;

	// Constructors

	/** default constructor */
	public Rest() {
	}

	/** full constructor */
	public Rest(Userprofile userprofile, Timestamp begintime,
			Timestamp overtime, String reason, String state) {
		this.userprofile = userprofile;
		this.begintime = begintime;
		this.overtime = overtime;
		this.reason = reason;
		this.state = state;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Userprofile getUserprofile() {
		return this.userprofile;
	}

	public void setUserprofile(Userprofile userprofile) {
		this.userprofile = userprofile;
	}

	public Timestamp getBegintime() {
		return this.begintime;
	}

	public void setBegintime(Timestamp begintime) {
		this.begintime = begintime;
	}

	public Timestamp getOvertime() {
		return this.overtime;
	}

	public void setOvertime(Timestamp overtime) {
		this.overtime = overtime;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

}